import {$http} from "@/utils/request/requestConfig.js"

const api = {
	'info':"api/evaluation/info/{travelId}",
	"submit":"api/evaluation/submit"
}

export const evaluationInfo = (data) => {
	const info = api.info.replace(/{travelId}/,data)
	return $http.get(info,data)
}

export const submitEvaluation = (data) => {
	return $http.post(api.submit,data)
}